<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\DB;

class ValidateController extends Controller
{
    //
    public function telrepeat(Request $request){
    	if(DB::table('bkuser')->where('tel',$request->tel)->exists()){
    		exit("false");
    	}else{
    		exit("true");
    	}
    }

    public function usernamerepeat(Request $request){
    	if(DB::table('bkuser')->where('username',$request->username)->exists()){
    		exit("false");
    	}else{
    		exit("true");
    	}
    }
}
